/* ===== HABITATS LEARNING TOOL - COMPLETE STYLES ===== */

/* ===== MODAL & CONTAINER ===== */
.ten-habitats-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  background-size: 400% 400%;
  animation: tenHabitatsGradientShift 15s ease infinite;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.ten-habitats-modal.active {
  display: flex;
}

@keyframes tenHabitatsGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.ten-habitats-container {
  background: var(--secondary-bg);
  border-radius: 50px;
  padding: 40px;
  max-width: 1600px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25),
    0 20px 50px rgba(102, 126, 234, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.8);
  animation: tenHabitatsSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 8px solid;
  border-image: linear-gradient(
      135deg,
      var(--primary-bg),
      #764ba2,
      #f093fb,
      var(--primary-bg)
    )
    1;
  border: none;
  padding: 40px 0;
}

@keyframes tenHabitatsSlideUp {
  from {
    transform: translateY(100px) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===== CLOSE BUTTON ===== */
.ten-habitats-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-bg);
  color: #1e1e1e;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 3.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-weight: bold;
  border: 4px solid white;
  height: auto;
  width: var(--fs-26-60);
  aspect-ratio: 1 / 1;
  line-height: 1;
  font-size: var(--fs-12-24);
}

.ten-habitats-close-btn:hover {
  transform: scale(1.2) rotate(90deg);
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.7);
}

/* ===== HEADER ===== */
.ten-habitats-header {
  text-align: center;
  margin-bottom: 35px;
  animation: tenHabitatsBounceIn 0.8s ease-out;
}

@keyframes tenHabitatsBounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.ten-habitats-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  background: linear-gradient(
    135deg,
    var(--primary-bg) 0%,
    #764ba2 25%,
    #f093fb 50%,
    var(--primary-bg) 75%,
    #764ba2 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 3px;
  animation: tenHabitatsRainbowText 5s linear infinite;
  background-size: 200% 200%;
}

@keyframes tenHabitatsRainbowText {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.ten-habitats-subtitle {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--primary-bg);
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(102, 126, 234, 0.3);
}

/* ===== SCORE BAR ===== */
.ten-habitats-score-bar {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.ten-habitats-score-item {
  background: white;
  border-radius: 30px;
  padding: 20px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 4px solid #a8e6cf;
  transition: all 0.3s ease;
}

.ten-habitats-score-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(168, 230, 207, 0.4);
}

.ten-habitats-score-item.ten-habitats-total {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border-color: #ff8c00;
  animation: tenHabitatsPulseGlow 2s infinite;
}

@keyframes tenHabitatsPulseGlow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
  }

  50% {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.7);
  }
}

.ten-habitats-score-label {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: #666;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ten-habitats-score-value {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-bg);
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(102, 126, 234, 0.2);
}

.ten-habitats-total .ten-habitats-score-value {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== NAVIGATION TABS ===== */
.ten-habitats-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.ten-habitats-tab-btn {
  background: linear-gradient(135deg, #e8f5ff 0%, #f0e8ff 100%);
  color: #555;
  border: 3px solid #d0d0d0;
  padding: 18px 30px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  border-radius: 35px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.ten-habitats-tab-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.ten-habitats-tab-btn.active {
  background: var(--primary-bg);
  color: #1e1e1e;
  border-color: var(--primary-bg);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
  transform: translateY(-3px) scale(1.08);
  border: none;
  box-shadow: none;
}

.ten-habitats-tab-text {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  text-align: center;
}

/* ===== CONTENT SECTIONS ===== */
.ten-habitats-content-section {
  display: none;
  animation: tenHabitatsFadeSlide 0.5s ease-out;
}

.ten-habitats-content-section.active {
  display: block;
}

@keyframes tenHabitatsFadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ten-habitats-learn-card {
  background: white;
  border-radius: 40px;
  padding: va(--fs-12-24);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border: 5px solid var(--primary-bg);
}

/* ===== ANIMATED HEADER ===== */
.ten-habitats-animated-header {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.ten-habitats-section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--primary-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(102, 126, 234, 0.2);
  animation: tenHabitatsWiggle 2s infinite;
}

@keyframes tenHabitatsWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-2deg);
  }

  75% {
    transform: rotate(2deg);
  }
}

.ten-habitats-section-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--primary-bg);
  font-weight: 700;
}

/* ===== INTRODUCTION SECTION ===== */
.ten-habitats-intro-content {
  max-width: 1100px;
  margin: 0 auto;
}

.ten-habitats-intro-box,
.ten-habitats-types-box,
.ten-habitats-why-box,
.ten-habitats-facts-box {
  background: linear-gradient(135deg, #fff9e6 0%, #ffefba 100%);
  border-radius: 25px;
  padding: var(--fs-12-24);
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 4px solid #ffd700;
}

.ten-habitats-intro-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--primary-bg);
  margin-bottom: 15px;
  font-weight: 900;
}

.ten-habitats-intro-text {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #555;
  line-height: 1.8;
  margin: 0;
}

.ten-habitats-types-list,
.ten-habitats-facts-list {
  list-style: none;
  padding-left: 0;
}

.ten-habitats-types-list li,
.ten-habitats-facts-list li {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #2d3436;
  margin: 12px 0;
  padding-left: 30px;
  position: relative;
}

.ten-habitats-types-list li:before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--primary-bg);
  font-size: 2rem;
}

.ten-habitats-facts-list li:before {
  content: "★";
  position: absolute;
  left: 0;
  color: #ffd700;
  font-size: 1.5rem;
}

/* ===== EXPLORER SECTION ===== */
.ten-habitats-home-screen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
}

.ten-habitat-card {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-radius: 30px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 5px solid transparent;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ten-habitat-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--primary-bg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.ten-habitat-card.ten-visited {
  border-color: #00b894;
}

.ten-visited-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #00b894;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.ten-habitat-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ten-habitat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ten-habitat-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== ANIMAL VIEW ===== */
.ten-habitats-animal-view {
  border-radius: 30px;
  padding: var(--fs-12-24);
  min-height: 500px;
  position: relative;
}

.ten-habitats-back-btn {
  padding: 1em;
  font-size: var(--fs-12-24);
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.ten-habitats-back-btn:hover {
  background: #ee5a52;
  transform: scale(1.05);
}

.ten-habitat-name {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: white;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.ten-animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.ten-animal-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 4px solid transparent;
}

.ten-animal-card:hover {
  transform: scale(1.05);
  border-color: var(--primary-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ten-animal-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ten-animal-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ten-animal-name {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #333;
  font-weight: 600;
}

/* ===== ANIMAL INFO MODAL ===== */
.ten-animal-info-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 20000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: tenModalFadeIn 0.3s ease;
}

.ten-animal-info-modal.active {
  display: flex;
}

@keyframes tenModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.ten-animal-modal-content {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
  border-radius: 30px;
  padding: var(--fs-12-24);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: tenModalSlideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
}

@keyframes tenModalSlideUp {
  from {
    transform: translateY(100px) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.ten-animal-close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ff6b6b;
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ten-animal-close-modal:hover {
  transform: rotate(90deg) scale(1.1);
  background: #ee5a52;
}

.ten-modal-animal-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ten-modal-animal-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ten-modal-title {
  font-size: 2.5rem;
  color: var(--primary-bg);
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.ten-modal-subtitle {
  font-size: 1.3rem;
  color: #666;
  text-align: center;
  margin-bottom: 30px;
  font-style: italic;
}

.ten-info-section {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 5px solid var(--primary-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ten-info-section h3 {
  color: var(--primary-bg);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.ten-info-section p {
  color: #555;
  font-size: 1.2rem;
  line-height: 1.6;
}

.ten-fun-fact-box {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-radius: 20px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  border: 3px dashed var(--primary-bg);
}

.ten-fun-fact-box h3 {
  color: #e17055;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.ten-fun-fact-box p {
  color: #2d3436;
  font-size: 1.3rem;
  font-weight: 600;
}

/* ===== QUIZ SECTION ===== */
.ten-habitats-quiz-progress {
  margin-bottom: 30px;
}

.ten-habitats-progress-bar {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  height: 25px;
  overflow: hidden;
}

.ten-habitats-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
  border-radius: 20px;
  transition: width 0.5s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.ten-habitats-quiz-area {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
  border-radius: 25px;
  padding: var(--fs-12-24);
}

.ten-habitats-hint-box {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 25px;
  border-left: 5px solid #00acc1;
}

.ten-habitats-hint-title {
  color: #00838f;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.ten-habitats-hint {
  color: #004d40;
  font-size: 1.1rem;
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
}

.ten-habitats-quiz-question {
  text-align: center;
  margin-bottom: 40px;
}

.ten-habitats-question-text {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-bg);
  font-weight: bold;
  animation: tenHabitatsQuestionPulse 2s infinite;
}

@keyframes tenHabitatsQuestionPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.ten-habitats-quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ten-habitats-quiz-option {
  cursor: pointer;
  transition: all 0.3s ease;
}

.ten-habitats-quiz-option:hover {
  transform: translateY(-10px) scale(1.05);
}

.ten-habitats-option-content {
  background: white;
  border-radius: 25px;
  padding:1em;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 5px solid #e0e0e0;
  transition: all 0.3s ease;
}

.ten-habitats-quiz-option:hover .ten-habitats-option-content {
  border-color: var(--primary-bg);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.ten-habitats-option-text {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #2d3436;
}

.ten-habitats-quiz-option.ten-habitats-correct-answer
  .ten-habitats-option-content {
  border-color: #4caf50;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  animation: tenHabitatsCorrectPulse 0.6s;
}

@keyframes tenHabitatsCorrectPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.ten-habitats-quiz-option.ten-habitats-wrong-answer
  .ten-habitats-option-content {
  animation: tenHabitatsWrongShake 0.5s;
}

@keyframes tenHabitatsWrongShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-15px);
  }

  75% {
    transform: translateX(15px);
  }
}

.ten-habitats-quiz-feedback {
  text-align: center;
  min-height: 80px;
}

.ten-habitats-feedback-correct,
.ten-habitats-feedback-wrong {
  display: inline-block;
  padding: 20px 40px;
  border-radius: 25px;
  animation: tenHabitatsFeedbackPop 0.5s;
}

@keyframes tenHabitatsFeedbackPop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.ten-habitats-feedback-correct {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 4px solid #4caf50;
}

.ten-habitats-feedback-wrong {
  background: linear-gradient(135deg, #fff9e6 0%, #ffefba 100%);
  border: 4px solid #ffd700;
}

.ten-habitats-feedback-text {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #2e7d32;
}

.ten-habitats-feedback-wrong .ten-habitats-feedback-text {
  color: #ff8c00;
}

/* ===== QUIZ RESULT SECTION ===== */
.ten-habitats-result-content {
  text-align: center;
  padding: 20px;
}

.ten-habitats-stars {
  font-size: 5rem;
  margin: 30px 0;
}

.ten-habitats-result-message {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary-bg);
  font-weight: 900;
  margin: 20px 0;
}

.ten-habitats-result-stats {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
  padding: 25px;
  border-radius: 20px;
  margin: 20px 0;
}

.ten-habitats-stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  margin: 15px 0;
}

.ten-habitats-stat-label {
  color: #666;
  font-weight: 600;
}

.ten-habitats-stat-value {
  color: var(--primary-bg);
  font-weight: 900;
}

.ten-habitats-result-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ===== COMPLETE BUTTON ===== */
.ten-habitats-complete-btn {
  background: var(--primary-bg);
  color: #1e1e1e;
  border: none;
  padding: 15px 40px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: none;
  transition: all 0.3s ease;
  font-family: inherit;
  margin-top: 15px;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
}

.ten-habitats-complete-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.ten-habitats-complete-btn.ten-habitats-secondary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.ten-habitats-btn-large {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  width: 100%;
}

/* ===== CONFETTI ===== */
.ten-habitats-confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10002;
  display: none;
}

.ten-habitats-confetti-container.active {
  display: block;
}

.ten-habitats-confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  animation: tenHabitatsConfettiFall 3s linear forwards;
  border-radius: 50%;
}

@keyframes tenHabitatsConfettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
.ten-habitats-container::-webkit-scrollbar {
  width: 14px;
}

.ten-habitats-container::-webkit-scrollbar-track {
  background: linear-gradient(
    135deg,
    rgba(168, 230, 207, 0.3),
    rgba(102, 126, 234, 0.3)
  );
  border-radius: 10px;
}

.ten-habitats-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #764ba2 100%);
  border-radius: 10px;
  border: 2px solid white;
}

.ten-habitats-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, var(--primary-bg) 100%);
}

.ten-animal-modal-content::-webkit-scrollbar {
  width: 10px;
}

.ten-animal-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.ten-animal-modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-bg);
  border-radius: 10px;
}

.ten-animal-modal-content::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .ten-habitats-container {
    padding: 30px;
  }

  .ten-habitats-home-screen {
    grid-template-columns: 1fr;
  }

  .ten-animals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ten-habitats-quiz-options {
    grid-template-columns: 1fr;
  }

  .ten-habitats-result-buttons {
    flex-direction: column;
  }

  .ten-habitats-complete-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ten-habitats-container {
    padding: 25px;
    border-radius: 35px;
  }

  .ten-habitats-nav-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .ten-habitats-tab-btn {
    width: 100%;
    min-width: auto;
  }

  .ten-animals-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
